/*
 * Original code: https://www.pixelbeat.org/programming/gcc/static_assert.html
 * Licensed under the GNU All-Permissive License.
 *
 *  Modifications Copyright 2018-2024 NXP
 * 
 *  NXP Confidential and Proprietary. This software is owned or controlled by 
 *  NXP and may only be used strictly in accordance with the applicable license
 *  terms.  By expressly accepting such terms or by downloading, installing, 
 *  activating and/or otherwise using the software, you are agreeing that you 
 *  have read, and that you agree to comply with and are bound by, such license
 *  terms.  If you do not agree to be bound by the applicable license terms,
 *  then you may not retain, install, activate or otherwise use the software.
 */
 
#ifndef CT_ASSERT_H
#define CT_ASSERT_H

 /**
 * @addtogroup  CLASS_ASSERT
 * @{
 *
 * @file        ct_assert.h
 *
 */

#define ASSERT_CONCAT_INNER(a, b) a##b
#define ASSERT_CONCAT_OUTER(a, b) ASSERT_CONCAT_INNER(a, b)
#define ct_assert(e) enum { ASSERT_CONCAT_OUTER(precompile_assert_, __COUNTER__) = (1/(!!(e))) }

/** @} */

#endif /* CT_ASSERT_H */
